package com.sk.cardeal.adapter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.sk.cardeal.R;
import com.sk.cardeal.entity.CostType;

import java.util.List;

/**
 * Created by sk on 2018/2/1.
 */

public class FixingOtherPayAdapter extends BaseQuickAdapter<CostType, BaseViewHolder> {

    public FixingOtherPayAdapter(int layoutResId, @Nullable List<CostType> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, CostType item) {
        helper.setText(R.id.tv_name, item.getCostName())
                .setText(R.id.tv_price, "￥" + item.getPrice());
    }
}
